let Mock = require('mockjs');
let arrs = ['张三','李四','王五']
// let types = [
//   {text:"推荐",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"视频",children:[{"text":"推荐1"},{"text1":"推荐2"}]},
//   {text:"女装",children:[{"text":"推荐1"},{"text2":"推荐2"}]},
//   {text:"手机",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"男装",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"鞋包",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"电器",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"健康",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"百货",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"母婴",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"数码",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"内衣",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"生鲜",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"洗护",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"美妆",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"运动",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"家装",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"家纺",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"车品",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"图书",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"充值",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"海淘",children:[{"text":"推荐1"},{"text":"推荐2"}]},
//   {text:"品牌",children:[{"text":"推荐1"},{"text":"推荐2"}]}
// ]

let types = Mock.mock([{
  "text": "推荐",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "食品",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "女装",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "手机",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "男装",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "鞋包",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "电器",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "健康",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "百货",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "母婴",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "数码",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "内衣",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "生鲜",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "洗护",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "美妆",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "运动",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "家装",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "家纺",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "车品",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "图书",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "充值",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "海淘",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
{
  "text": "品牌",
  "children|15": [{
     "image": "@image('50x50','@color','#fff','@increment')",
     "text": "@cword(4)"
  }]
},
])



Mock.mock('/get',"get",arrs)

Mock.mock('/type',"get",types)

Mock.mock('/login','post',function(config){
  return {
    message:"验证成功",
    token:"hello123"
  }
})